home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000121_news@newsmaster….columbia.edu _Sat May 23 05:02:19 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  6KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id FAA27908
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 23 May 1998 05:02:18 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id FAA19431
  7.     for kermit.misc@watsun; Sat, 23 May 1998 05:02:18 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!Supernews73!supernews.com!nntp.flash.net!scanner.worldgate.com!rover.ucs.ualberta.ca!news.ucalgary.ca!acs2.acs.ucalgary.ca!mmastrac
  9. From: Matthew Mastracci <mmastrac@acs.ucalgary.ca>
  10. Newsgroups: comp.protocols.kermit.misc,comp.sys.hp48
  11. Subject: Re: Kermit on the HP48 (Was: One-Way Transfer)
  12. Date: Sat, 23 May 1998 02:13:14 -0600
  13. Organization: The University of Calgary
  14. Lines: 102
  15. Message-ID: <6k60eq$cva@ds2.acs.ucalgary.ca>
  16. References: <35646665.EBB3868B@theriver.com> <6k1qoj$d92$1@apakabar.cc.columbia.edu> <wkvhqye9g4.fsf@jhuapl.edu> <6k42pd$a3m$1@apakabar.cc.columbia.edu>
  17. NNTP-Posting-Host: mmastrac@acs2.acs.ucalgary.ca
  18. Mime-Version: 1.0
  19. Content-Type: TEXT/PLAIN; charset=US-ASCII
  20. To: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  21. In-Reply-To: <6k42pd$a3m$1@apakabar.cc.columbia.edu>
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:8776 comp.sys.hp48:81349
  23.  
  24. On 22 May 1998, Frank da Cruz wrote:
  25.  
  26. > As noted in an earlier posting in this thread, I would like to straighten
  27. > out the massive confusion about Kermit file transfer with the HP-48.  We (at
  28. > the Kermit Project) are not HP-48 experts, but we do have an early model
  29. > HP-48 for testing.  When we get complaints or questions about file transfer
  30. > with the HP-48, we check our answers on it.
  31.  
  32. I've written a Kermit program for transferring between the PC and the
  33. HP48, so I'd like to offer my discoveries (I've spent a long time getting
  34. my client to connect to the calculator).
  35.  
  36. >  1. The top serial speed is 9600, right?
  37.  
  38. Yes.
  39.  
  40. >  2. Should the flow control setting be NONE or XON/XOFF?  We have
  41. >     conflicting reports (see above).  Obviously the HP-48 *should* be
  42. >     exercising some form of flow control, but some reports indicate that
  43. >     it does not (even if it is set to do so).
  44.  
  45. The calculation doesn't need flow control, as the size of a packet will
  46. never exceed the internal buffer (sliding windows aren't supported).
  47. Having XON/XOFF interferes with the transfer, from what I can tell, as the
  48. HP48 picks the control characters up as unquoted data.  I can tell you
  49. *absolutely* that flow control is not required.
  50.  
  51. >  3. Is the link transparent to incoming control characters?  Can the
  52. >     client Kermit program use control-character unprefixing when sending
  53. >     to the HP-48?  If not, the client program must be told to
  54. >     SET CONTROL PREFIX ALL prior to sending files to the HP-48.
  55.  
  56. The link is transparent to all characters.  The HP48 will reject any
  57. packet that contains an unquoted control character with a NAK packet (this
  58. is probably because the calculator can also send via IR, which may
  59. introduce errors).  Control-character prefixing must be used to send to
  60. the HP48.
  61.  
  62. >  4. Does the link allow 8-bit data?  If not, the client must be given
  63. >     the appropriate SET PARITY command.
  64.  
  65. The default setting for the HP48's serial port is 9600 baud, no parity, 8
  66. bits and 1 stop bit.  If it has been set to something else, you can
  67. restore it to this default by deleting the IOPAR variable. 
  68.  
  69. > The HP-48 does not support long packets; thus the maximum packet length
  70. > is 94, but this should be negotiated automatically.
  71.  
  72. This is negotiated properly.
  73.  
  74. > The HP communication port is half duplex, meaning that data can go in both
  75. > directions, but only in one direction at a time.  Therefore sliding windows
  76. > can not be used (this too should be negotiated automatically).
  77.  
  78. Yes.  The HP48's info is something like "~* @-#N1".
  79.  
  80. > More to the point, I have also heard that (at least some models of) the
  81. > HP-48 become "deaf" to incoming bytes for some number of milliseconds while
  82. > switching their serial port from "send" to "receive", so if the client
  83. > program is too fast, file transfers can fail.  The solution to this is to
  84. > tell the client program to pause for a sufficient number of milliseconds
  85. > prior to sending each packet:
  86.  
  87. This only happens every dozen packets or so.  A client that can resubmit a
  88. NAK'd packet will be able to recover from this.  If you watch a transfer
  89. at high speeds, you'll see every few packets fail (for no apparent reason:
  90. the link cable is a very clean line).  Setting the flag you mentioned will
  91. fix the problem.
  92.  
  93. > Postings on comp.sys.hp48 indicate that the HP-48 Kermit implementation
  94. > "parses" incoming text-mode material on the fly, and appends the material
  95. > from each incoming packet to a "string", resulting in a steadily
  96. > deteriorating transfer rate, at least up to some point at which the HP-48
  97. > dumps the string to storage and starts over with a new string.  There's not
  98. > much that the Kermit client can do about that.
  99.  
  100. Actually, it has to copy the *entire* received buffer for each packet,
  101. from what I understand. 
  102.  
  103. > Any other hints from HP-48 users will be appreciated; I'll be glad to
  104. > collect them into an FAQ.
  105.  
  106. The '48 is very picky about some aspects of the Kermit protocol.  Here are
  107. a few additional points about the HP48's server:
  108.  
  109.  - The only way to change the working directory is with a command packet
  110. that reads: { Relative_directory_name } EVAL
  111.  - Each command packet will send back data containing a stack dump.
  112.  - Directory dumps are in the format:
  113. ---
  114. { Current_directory } Free_space
  115. Object_name Object_size_bytes Object_type Object_CRC
  116. ... etc ...
  117. ---
  118.  - Error packets should contain CR+LF (#M#J) at the end of the string
  119.  - You can shut the HP48's server down with a 'G' packet, data "F"
  120.  
  121. /\/\att /\/\astracci                  mmastrac@acs.ucalgary.ca
  122.  
  123. "Tout choses sont dites deja, mais comme personne n'ecoute, il faut
  124. toujours recommencer."
  125.